//
//  TuPageModel.m
//  GentlemanAnime
//
//  Created by dlios on 15-7-6.
//  Copyright (c) 2015年 lanou3g.com 蓝欧科技. All rights reserved.
//

#import "TuPageModel.h"

@implementation TuPageModel
- (void)dealloc {
    [_page release];
    [_sizeArr release];
    [_chapter_name release];
    [_chapter_order release];
    [_comic_id release];
    [_Id release];
    [super dealloc];
}

- (instancetype)init {
    self = [super init];
    if (self) {
        self.sizeArr = [NSMutableArray array];
    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        self.Id = value;
    } else if ([key isEqualToString:@"size"]) {
        NSArray *arr = value;
        for (NSDictionary *tempDic in arr) {
            TuSizeModel *model = [[TuSizeModel alloc] init];
            [model setValuesForKeysWithDictionary:tempDic];
            [self.sizeArr addObject:model];
            [model release];
        }
    }
}

@end
